package sanshi.contect.abstractfactory.abstract01;

import sanshi.contect.abstractfactory.abstract01.magic.MagicFactory;
import sanshi.contect.abstractfactory.abstract01.people.PeopleFactory;

public class FacMain {
    public static void main(String[] args) {

//        PeopleFactory factory = new PeopleFactory();
        AbstractFactory factory = new MagicFactory();
        factory.createFood().printName();
        factory.createVehicle().go();
        factory.createWeapon().shoot();
    }
}
